package com.tocean.app.mapper.common;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tocean.app.controller.request.paper.PaperSearchDto;
import com.tocean.app.entity.common.PaperTopic;
import com.tocean.app.entity.common.TestPaper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface PaperTopicMapper extends BaseMapper<PaperTopic> {

    IPage<PaperTopic> getList(Page<?> page, @Param("dd") PaperSearchDto paperSearchDto);

    List<String> selectByPaperId(String paperId);

    List<String> WrongSet(String topicId);

    void updateIsMistakeByTopicId(String topic_id);

    void deleteByPaperId(String paperId);
    PaperTopic isHasStem(String paperId,String stemId);

    void deleteTopic(String paperId, String stemId);
}
